#include "KdTree.h"

class NaiveKdTree: public KdTree
{
public:
	NaiveKdTree(const vector<TCRTMesh*>& Meshes);

	virtual bool StopSplitting(KdTreeNode* pRoot, size_t iLevel);
	virtual bool FindSplitPlane(KdTreeNode* pRoot, size_t iLevel, int& iAxis, float& fPosition);

	// Stop splittig criteria
	virtual size_t GetMaximumDepth() const;
	virtual size_t GetMaximumTrianglePerLeaf() const;
};